package com.example.demo.service.impl;

import com.example.demo.entity.Student;
import com.example.demo.mapper.StudentMapper;
import com.example.demo.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentImpl implements StudentService {
    @Autowired
    StudentMapper mapper;

    @Override
    public Student queryUserById(String id){
        return mapper.queryUserById(id);
    }
    @Override
    public String queryPasswordById(String id){
        return mapper.queryPasswordById(id);
    }
    @Override
    public String queryPasswordByName(String name){
        return mapper.queryPasswordByName(name);
    }
}
